import { get, post } from "@/utils/http";

//@mock https://mock.xiaojukeji.com/project/16162/interface/api/cat_87636
export const getSensitivityWorkList = (params) => post("/risk/work/list", params); //敏感数据工单查询
export const governSensitivityWork = (params) => post("/risk/work/govern", params); //治理数据工单
export const saveGovernPlan = (params) => post("/risk/work/saveMysqlInfo", params); //保存治理方案
export const changeSensitivityWorkUser = (params) => post("/risk/work/changeUser", params); //转交数据工单
export const closeSensitivityWork = (params) => post("/risk/work/closeOrder", params); //关闭数据工单
export const getWorkOrderLog = (params) => post("/risk/work/orderlog", params); //操作日志
export const getListStatusCount = (params) => post("/risk/work/statusCount", params); //获取列表中状态统计值
export const getProcessInfo = (params) => get("/risk/work/processInfo", params); //获取处置流程信息
export const getCloseOrderInfo = (params) => post("/risk/work/getCloseOrderInfo", params); //查询关单信息
export const getOrderDetail = (params) => get("/risk/work/orderDetail", params); //获取治理信息
export const getGovernProcessNodeList = (params) => post("/risk/work/nodeList", params); //获取治理阶段查询条件
export const getGovernPlanNodeList = (params) => post("/risk/work/planDict", params); //获取治理方式下拉框
export const getMysqlBusiness = (params) => get("/risk/getMysqlBusiness", params); //获取业务线
export const batchCheckOrder = (params) => post("/risk/work/batchCheck", params); //批量验收
export const getBpmAppealUrlApi = (params) => get("/risk/work/getBpmAppealUrl", params); //申诉弹框 申诉原因下拉数据

export const governSelfExamApi = (params) => post("/risk/work/governSelfExam", params); //触发批量自查处置流程
export const getFeModelCfgStructApi = (params) => post("/risk/govern/getFeModelCfgStruct", params); //风险主体和风险信息的表头（详情界面）

//新接口
export const getSourceAndCountListApi = (params) => get("/risk/work/getSourceAndCountList", params); //获取工单分类与数量列表
export const getOrderListBySearchAndFilterApi = (params) => post("/risk/work/getOrderListBySearchAndFilter", params); //根据搜索&筛选获取工单列表
export const receiveOrRejectApi = (params) => post("/risk/work/receiveOrReject", params); //认领
export const getGovernBaseInfoApi = (params) => post("/risk/govern/getGovernBaseInfo", params); //获取治理数据基础信息
export const workDetailApi = (params) => get("/risk/work/detail", params); //工单详情

export const delayDateApi = (params) => post("/risk/work/delayDate", params); //延期
export const delayDetailApi = (params) => get("/risk/work/delayDetail", params); //最近一次延期内容
export const getWorkOrderCountByStatusApi = (params) => get("/risk/work/getWorkOrderCountByStatus", params); //获取工单状态总数量

//我的审批工单
export const approveWorkListApi = (params) => post("/risk/work/approveWorkList", params); //我的审批工单列表
//我的知会工单列表
export const informWorkListApi = (params) => post("/risk/work/informWorkList", params); //我的知会工单列表
